package com.xiaoyu.lanling.feature.user.model

import `in`.srain.cube.views.list.ListItemTypedBase
import com.xiaoyu.lanling.media.image.ImageLoadParam

class UserAlbumItem(val url: String) : ListItemTypedBase {

    val imageLoadParam = ImageLoadParam.newBuilder().setUrl(url).setWidthInDP(64).setCornersRadiusInDP(8F).build()

    override fun getViewType(): Int {
        return 0
    }

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as UserAlbumItem

        if (url != other.url) return false

        return true
    }

    override fun hashCode(): Int {
        return url.hashCode()
    }
}